import request from '@/utils/request'

// 获取首页轮播图
export const getBanner = (distributionSite) => {
  return request({
    url: '/home/banner',
    method: 'get',
    params:{
        distributionSite
    }
  })
}
//获取新鲜好物
export const getNew = () => {
  return request({
    url: '/home/new',
    method: 'get',
  })
}
//获取人气推荐
export const getHot = () => {
  return request({
    url: '/home/hot',
    method: 'get',
  })
}
export const getGoods = () => {
    return request({
      url: '/home/goods'
    })
  }